<?php /* Smarty version 2.6.14, created on 2014-11-19 17:53:28
         compiled from game_manager.ads.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'game_manager.ads.html', 23, false),array('modifier', 'date_format', 'game_manager.ads.html', 26, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<br/>
<br/>
<p><?php echo $this->_tpl_vars['systemLang']['gameScreenshot']; ?>
</p>
<form action="<?php echo $this->_tpl_vars['formAction']; ?>
" method="POST" <?php if ($this->_tpl_vars['is_validator']): ?> id="adminform" onsubmit="return Validator.Validate(this)" <?php endif; ?>>
<table class="adminlist" border="0" cellspacing="0">
	<thead>
        <tr>
			<th><input type="checkbox" name="toggle" id="toggle" value="all" /></th>
            <th><?php echo $this->_tpl_vars['systemLang']['adsName']; ?>
</th>
			<th><?php echo $this->_tpl_vars['systemLang']['adsSort']; ?>
</th>
			<th>&nbsp;</th>
            <th><?php echo $this->_tpl_vars['systemLang']['adsTime']; ?>
</th>
            <th><?php echo $this->_tpl_vars['systemLang']['operate']; ?>
</th>
        </tr>
    </thead>
    <tbody>   
    <?php $_from = $this->_tpl_vars['typelist_pic']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['a'] => $this->_tpl_vars['myad']):
?>
    	<tr class="row0">
			<td><input type="checkbox" name="select_id[]" value="<?php echo $this->_tpl_vars['myad']['pic_id']; ?>
"></td>
        	<td><?php echo $this->_tpl_vars['myad']['pic_name']; ?>
</td>
			<td> <select  id="pic_order_<?php echo $this->_tpl_vars['myad']['pic_id']; ?>
">
	    <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['ordertotal'],'selected' => $this->_tpl_vars['myad']['pic_order']), $this);?>

    </select></td>
	<Td><input value="<?php echo $this->_tpl_vars['systemLang']['submit']; ?>
" type="button" class="button" onclick="abc('<?php echo @BASEURI; ?>
game_manager/ads/<?php echo $this->_tpl_vars['myad']['game_id']; ?>
','pic_order_<?php echo $this->_tpl_vars['myad']['pic_id']; ?>
','<?php echo $this->_tpl_vars['myad']['pic_id']; ?>
')"/></Td>
        	<td><?php echo ((is_array($_tmp=$this->_tpl_vars['myad']['pic_add_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M:%S")); ?>
</td>
        	<td>
            <a href="<?php echo @BASEURI; ?>
game_manager/adsedit/<?php echo $_GET['2']; ?>
/<?php echo $this->_tpl_vars['myad']['pic_id']; ?>
/0"><?php echo $this->_tpl_vars['systemLang']['edit']; ?>
</a>
            <a href="<?php echo @BASEURI; ?>
game_manager/adsdelete/<?php echo $_GET['2']; ?>
/<?php echo $this->_tpl_vars['myad']['pic_id']; ?>
" <?php echo @IS_DELETE; ?>
 ><?php echo $this->_tpl_vars['systemLang']['del']; ?>
</a>
            </td>
        </tr>
   <?php endforeach; endif; unset($_from); ?>
    </tbody>
    <tfoot>
    	<tr>
        	<td colspan="3">
			<input type="button"  class="button" value="<?php echo $this->_tpl_vars['systemLang']['del']; ?>
" onclick="select_control('<?php echo @BASEURI; ?>
game_manager/adsdelete/<?php echo $_GET['2']; ?>
','')<?php echo $this->_tpl_vars['systemLang']['delConfirm']; ?>
"/>
            <input type="button" class="button" value="<?php echo $this->_tpl_vars['systemLang']['add']; ?>
" accesskey="N" onClick="button_location('<?php echo @BASEURI; ?>
game_manager/addpic/<?php echo $_GET['2']; ?>
/0')">
            </td>
            <td colspan="3">&nbsp;</td>
        </tr>
    </tfoot>
</table>
</form>
<br/>
<br/>
<p><?php echo $this->_tpl_vars['systemLang']['gameVideo']; ?>
</p>
<table class="adminlist" border="0" cellspacing="0">
	<thead>
        <tr>
            <th><?php echo $this->_tpl_vars['systemLang']['adsName']; ?>
</th>
            <th><?php echo $this->_tpl_vars['systemLang']['videoUrl']; ?>
</th>
            <th><?php echo $this->_tpl_vars['systemLang']['operate']; ?>
</th>
        </tr>
    </thead>
    <tbody>   
    <?php $_from = $this->_tpl_vars['typelist_flash']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['a'] => $this->_tpl_vars['myad']):
?>
    	<tr class="row0">
        	<td><?php echo $this->_tpl_vars['myad']['pic_name']; ?>
</td>
        	<td><?php echo $this->_tpl_vars['myad']['pic_link']; ?>
</td>
        	<td>
            <a href="<?php echo @BASEURI; ?>
game_manager/adsedit/<?php echo $_GET['2']; ?>
/<?php echo $this->_tpl_vars['myad']['pic_id']; ?>
/1"><?php echo $this->_tpl_vars['systemLang']['edit']; ?>
</a>
            <a href="<?php echo @BASEURI; ?>
game_manager/adsdelete/<?php echo $_GET['2']; ?>
/<?php echo $this->_tpl_vars['myad']['pic_id']; ?>
" <?php echo @IS_DELETE; ?>
 ><?php echo $this->_tpl_vars['systemLang']['del']; ?>
</a>
            </td>
        </tr>
   <?php endforeach; endif; unset($_from); ?>
    </tbody>
    <tfoot>
    	<tr>
        	<td colspan="3">
            <input type="button" class="button" value="<?php echo $this->_tpl_vars['systemLang']['add']; ?>
" accesskey="N" onClick="button_location('<?php echo @BASEURI; ?>
game_manager/addpic/<?php echo $_GET['2']; ?>
/1')">
            </td>
            <td colspan="3">&nbsp;</td>
        </tr>
    </tfoot>
</table>
<br/>
<br/>
<p><?php echo $this->_tpl_vars['systemLang']['gameRevealImg']; ?>
</p>
<table class="adminlist" border="0" cellspacing="0">
	<thead>
        <tr>
            <th><?php echo $this->_tpl_vars['systemLang']['adsName']; ?>
</th>
            <th><?php echo $this->_tpl_vars['systemLang']['linkUrl']; ?>
</th>
            <th><?php echo $this->_tpl_vars['systemLang']['operate']; ?>
</th>
        </tr>
    </thead>
    <tbody>   
    <?php $_from = $this->_tpl_vars['typelist_zhanshi']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['a'] => $this->_tpl_vars['myad']):
?>
    	<tr class="row0">
        	<td><?php echo $this->_tpl_vars['myad']['pic_name']; ?>
</td>
        	<td><?php echo $this->_tpl_vars['myad']['pic_link']; ?>
</td>
        	<td>
            <a href="<?php echo @BASEURI; ?>
game_manager/adsedit/<?php echo $_GET['2']; ?>
/<?php echo $this->_tpl_vars['myad']['pic_id']; ?>
/2"><?php echo $this->_tpl_vars['systemLang']['edit']; ?>
</a>
            <a href="<?php echo @BASEURI; ?>
game_manager/adsdelete/<?php echo $_GET['2']; ?>
/<?php echo $this->_tpl_vars['myad']['pic_id']; ?>
" <?php echo @IS_DELETE; ?>
 ><?php echo $this->_tpl_vars['systemLang']['del']; ?>
</a>
            </td>
        </tr>
   <?php endforeach; endif; unset($_from); ?>
    </tbody>
    <tfoot>
    	<tr>
        	<td colspan="3">
            <input type="button" class="button" value="<?php echo $this->_tpl_vars['systemLang']['add']; ?>
" accesskey="N" onClick="button_location('<?php echo @BASEURI; ?>
game_manager/addpic/<?php echo $_GET['2']; ?>
/2')">
            </td>
            <td colspan="3">&nbsp;</td>
        </tr>
    </tfoot>
</table>

<br/>
<br/>
<p><?php echo $this->_tpl_vars['systemLang']['gameThumbApp']; ?>
</p>
<table class="adminlist" border="0" cellspacing="0">
	<thead>
        <tr>
            <th><?php echo $this->_tpl_vars['systemLang']['gameImgUrl']; ?>
</th>
            <th><?php echo $this->_tpl_vars['systemLang']['linkUrl']; ?>
</th>
            <th><?php echo $this->_tpl_vars['systemLang']['operate']; ?>
</th>
        </tr>
    </thead>
    <tbody>   
    <?php $_from = $this->_tpl_vars['screenshot']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['a'] => $this->_tpl_vars['myad']):
?>
    	<tr class="row0">
        	<td><?php echo $this->_tpl_vars['myad']['pic']; ?>
</td>
        	<td><?php echo ((is_array($_tmp=$this->_tpl_vars['myad']['create_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d %H:%M:%S') : smarty_modifier_date_format($_tmp, '%Y-%m-%d %H:%M:%S')); ?>
</td>
        	<td>
            <a href="<?php echo @BASEURI; ?>
game_manager/screenshotedit/<?php echo $_GET['2']; ?>
/<?php echo $this->_tpl_vars['myad']['game_screenshot_id']; ?>
"><?php echo $this->_tpl_vars['systemLang']['edit']; ?>
</a>
            </td>
        </tr>
   <?php endforeach; endif; unset($_from); ?>
    </tbody>
    <tfoot>
    	<tr>
        	<td colspan="3">
            <input type="button" class="button" value="<?php echo $this->_tpl_vars['systemLang']['add']; ?>
" accesskey="N" onClick="button_location('<?php echo @BASEURI; ?>
game_manager/addscreenshot/<?php echo $_GET['2']; ?>
')">
            </td>
            <td colspan="3">&nbsp;</td>
        </tr>
    </tfoot>
</table>
<script>
function getSelectedValue(name){
var obj=document.getElementById(name);
return obj.value;      //直接用其对象的value属性便可获取到
}
function abc(url,a,b){
	ab=getSelectedValue(a);
	window.location=url+'/'+ab+'/'+b;
}
</script>